﻿using PowerHub.MES.Entities.Shopfloor;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;

namespace PowerHub.MES.Entities.Crew;

/// <summary>
/// 排班计划
/// </summary>
[Table("Crew_SchedulingPlan")]
public partial class Crew_SchedulingPlan : BaseEntity
{
    /// <summary>
    /// 计划编码
    /// </summary>
    public string? SchedulingPlanNo { get; set; }

    /// <summary>
    /// 计划名称
    /// </summary>
    public string? SchedulingPlanName { get; set; }

    /// <summary>
    /// 班组id
    /// </summary>
    public string? TeamBillId { get; set; }


    /// <summary>
    /// 状态
    /// </summary>
    public long? SchedulingPlanStatus { get; set; }

    /// <summary>
    /// 备注
    /// </summary>
    public string? Remark { get; set; }

    /// <summary>
    /// 开始时间
    /// </summary>
    public DateTime? StartTime { get; set; }

    /// <summary>
    /// 结束时间
    /// </summary>
    public DateTime? EndTime { get; set; }

    /// <summary>
    /// 轮班方式
    /// </summary>
    public long? ShiftPattern { get; set; }

    /// <summary>
    /// 工单id
    /// </summary>
    public string? WorkOrderId { get; set; }
    /// <summary>
    /// 产线id
    /// </summary>
    public string? ProductionLineId { get; set; }
    public virtual Crew_TeamBill? TeamBill { get; set; }
    public virtual Shopfloor_ProductionLine? ProductionLine { get; set; }

    public virtual ICollection<Crew_SchedulingPlanDetial> CrewSchedulingPlanDetials { get; set; } = new List<Crew_SchedulingPlanDetial>();

}
